let context = null
const initContext = (vue) => {
	context = vue;
}
//获取工单详情接口 服务工单详情.html
const GetOrderServiceHistory = async (UserPhone, WoGuid, token) => {

	let IdentifyId = "WOTrace";
	var objects = {
		'UserId': UserPhone,
		'WOGUID': WoGuid
	};
	let strObject = JSON.stringify(objects);
	let [error, result] = await context.commService.postEntityAsync(IdentifyId, strObject, token);
	if (!error && result.statusCode == 200) {
		return result.data;
	}
	return null;
}

const woprogressservice = {
	initContext,
	GetOrderServiceHistory,
}

export default woprogressservice
